package p2pgame.message;

import rice.p2p.commonapi.Id;
import rice.p2p.commonapi.Message;

/**
 * An example message.
 * 
 * @author Jeff Hoye
 */
public class AbstractMessage implements Message {

	static final long serialVersionUID = 546356;

	public Id from;
	
	public AbstractMessage(Id from){
		this.from=from;
	}
	
//	@Override 
//	public AbstractMessage clone(){
//		
//	}
	
	public String toString() {
		return this.getClass().toString();
	}

	/**
	 * Use low priority to prevent interference with overlay maintenance traffic.
	 */
	public int getPriority() {
		return Message.LOW_PRIORITY;
	}
}
